package com.zb.vo;

import com.zb.annotation.NumberPattern;
import com.zb.utils.VerificUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @Author WEN
 * @Date 2024/5/28 0028
 **/
@Data
@ApiModel("提现工单对象")
public class WithdrawOrderVo {
    @ApiModelProperty(value = "提现工单ID，修改必传，新增不必传")
    private Long id;

    @NotNull(message = "工单不能为空")
    @ApiModelProperty(value = "工单ID", required = true)
    private Long workId;

    @NotBlank(message = "工单单号不能为空")
    @ApiModelProperty(value = "工单单号", required = true)
    private String workNo;

    @NotNull(message = "提现金额不能为空")
    @NumberPattern(regexp = VerificUtil.FLOATING_NUMBER_10_2, required = true, message = "提现金额最多允许输入8位整数，两位小数")
    @ApiModelProperty(value = "提现金额", required = true)
    private BigDecimal withdrawMoney;

    @NumberPattern(regexp = VerificUtil.FLOATING_NUMBER_10_2, message = "旧提现金额最多允许输入8位整数，两位小数")
    @ApiModelProperty(value = "旧提现金额")
    private BigDecimal oldWithdrawMoney;

    @Length(max = 100, message = "备注长度限制100个字符")
    @ApiModelProperty(value = "备注")
    private String remark;
}
